package com.swg.myspring.main;

import com.swg.myspring.service.PersonService2;
import com.swg.myspring.util.SwgClassPathXmlApplicationContext2;
import com.swg.myspring.util.SwgClassPathXmlApplicationContext3;

public class Main3 {
    public static void main(String[] args) {
        SwgClassPathXmlApplicationContext3 sctx = new SwgClassPathXmlApplicationContext3("beans3.xml");
        PersonService2 personService2 = (PersonService2)sctx.getBean("personService2",PersonService2.class);
        personService2.sayHello();
    }
}
